export function validPhone (str: string) {
  const reg = /^1[3-9]\d{9}$/
  return reg.test(str)
}

export function validPhoneCode (str: string) {
  const reg = /^\d{6}$/
  return reg.test(str)
}

export function validPwd (str: string) {
  const reg = /^(?=.*[0-9].*)(?=.*[A-Za-z].*).{8,16}$/
  return reg.test(str)
}